
#include "PHDS.h"
#include <Buttons.hpp>
#include <Classes.hpp>
#include <ComCtrls.hpp>
#include <Controls.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <Menus.hpp>
#include <ToolWin.hpp>
#include <StdCtrls.hpp>
#include <AppEvnts.hpp>
#include <jpeg.hpp>
//---------------------------------------------------------------------------
#ifndef principalH
#define principalH
//---------------------------------------------------------------------------
#include <vcl/Classes.hpp>
#include <vcl/Controls.hpp>
#include <vcl/StdCtrls.hpp>
#include <vcl/Forms.hpp>
#include <vcl/ComCtrls.hpp>
#include <vcl/ExtCtrls.hpp>
#include <vcl/Menus.hpp>
#include <vcl/Buttons.hpp>
#include <ToolWin.hpp>
#include "Utilph.h"
#include "PHDS.h"
#include "stdm.h"
#include <Graphics.hpp>
#include "NovNot.h"
#include "HtmlHelper.h"

//---------------------------------------------------------------------------
class TPrincipal1 : public TForm
{
  __published:  // IDE-managed Components
    TStatusBar*  StatusBar1;
    TTimer*  Timer1;
    TMainMenu*  MainMenu1;
    TMenuItem*  Empresas1;
    TMenuItem*  Abre1;
    TMenuItem*  Manuteno1;
    TMenuItem*  Cadastros1;
    TMenuItem*  Senhas1_s;
    TToolBar*  ToolBar1;
    TMenuItem*  OutrasOpes1;
    TMenuItem*  DataBloqueio1;
    PHDataSource*  PHDS1;
    TMenuItem*  ReindexaoGeral1;
    TMenuItem*  ParamtrosArquivos1;
    TMenuItem*  VerificaodeDados1;
    TMenuItem*  Ajuda1;
    TMenuItem*  Contedo1;
    TMenuItem*  PHnaWEB1;
    TMenuItem*  VersesInternte1;
    TMenuItem*  ConfiguraodeUsurio1;
    TMenuItem*  Calculadora1;
    TMenuItem*  CpiadeSegurana1;
    TMenuItem*  CopiarEnviar1;
    TMenuItem*  Restaurar1;
    TMenuItem*  Ferramentas1;
    TImage*  Image1;
    TMenuItem*  Clientes1;
    TMenuItem*  Fornecedoree1;
    TMenuItem*  Movimento1;
    TMenuItem*  Consultas1;
    TMenuItem*  Interligaes1;
    TMenuItem*  ImpostosContribuiesRetidos1;
    TMenuItem*  Servios1;
    TMenuItem*  ModelosdeContratos1;
    TMenuItem*  ModelosdeNF1;
    TMenuItem*  ModelosdeRecibos1;
    TMenuItem*  Indices1;
    TMenuItem*  Contratos1;
    TMenuItem*  Faturamento1;
    TMenuItem*  Recebimentos1;
    TMenuItem*  Pagamentos1;
    TMenuItem*  Caixa1;
    TMenuItem*  Bancos1;
    TMenuItem*  Receber1;
    TMenuItem*  Pagar1;
    TMenuItem*  MovimentoClientes1;
    TMenuItem*  MovimentoFornecedores1;
    TMenuItem*  Informaes1;
    TMenuItem*  LanamentosContbeis1;
    TMenuItem*  ContasBancrias1;
    TMenuItem*  ContasaPagar1;
    TSpeedButton*  SpeedButton2;
    TSpeedButton*  SpeedButton6;
    TSpeedButton*  SpeedButton1;
    TMenuItem*  ProjetosPH1;
    TToolButton*  ToolButton2;
    TSpeedButton*  SpeedButton3;
    TSpeedButton*  SpeedButton4;
    TToolButton*  ToolButton1;
    TSpeedButton*  SpeedButton5;
    TSpeedButton*  SpeedButton7;
    TSpeedButton*  SpeedButton8;
    TSpeedButton*  SpeedButton9;
    TTimer*  TimerCnsCaixa;
    TSpeedButton*  SpeedButton10;
    TToolButton*  ToolButton3;
    TMenuItem*  ServiosExtras1;
    TMenuItem*  N1;
    TMenuItem*  N3;
    TMenuItem*  N4;
    TMenuItem*  N5;
    TMenuItem*  N7;
    TMenuItem*  N8;
    TMenuItem*  N10;
    TMenuItem*  Cheques1;
    TTimer*  TimerCnsChq;
    TTimer*  TimerCnsBnc;
    TTimer*  TimerCnsMvCli;
    TTimer*  TimerCnsMvForn;
    TTimer*  TimerCnsContasR;
    TTimer*  TimerCnsContasP;
    TMenuItem *Anotaes1;
    TMenuItem *Aniversariantes1;
    TMenuItem *AdicionaisPorNmerodeFuncionrios1;
        TMenuItem *N6;
        TMenuItem *PesosCustos1;
    TMenuItem *Custos1;
        TMenuItem *N13;
        TMenuItem *Custos2;
 TMenuItem *ConfiguraodeURLs1;
 TMenuItem *FluxoCaixa1;
 TMenuItem *N14;
 TMenuItem *ImportarRetornoBoletos1;
 TMenuItem *N15;
 TMenuItem *AtalhospOutrosAplicativos1;
 TBitBtn *BitBtn1;
 TMenuItem *ConsultaLog1;
 TMenuItem *EscritaFiscal1;
 TMenuItem *ConfiguraoServicosPeriodicos;
 TMenuItem *ServicosFaturados1;
 TMenuItem *ModelosdeRecibosdeCobranas1;
 TMenuItem *RelaodeClientes1;
 TMenuItem *TiposdeNegativas1;
 TMenuItem *Negativas1;
 TMenuItem *CnsNegativas1;
 TMenuItem *ModelosdeContratosSociais1;
 TApplicationEvents *ApplicationEvents1;
    void __fastcall FormCreate( TObject* Sender );
    void __fastcall ShowHint( TObject* Sender );
    void __fastcall FormCloseQuery( TObject* Sender, bool& CanClose );
    void __fastcall Manuteno1Click( TObject* Sender );
    void __fastcall Timer1Timer( TObject* Sender );
    void __fastcall Abre1Click( TObject* Sender );
    void __fastcall Senhas1_sClick( TObject* Sender );
    void __fastcall FormShow( TObject* Sender );
    void __fastcall DataBloqueio1Click( TObject* Sender );
    void __fastcall PHDS1AfterOpen( TObject* Sender );
    void __fastcall SpeedButton1Click( TObject* Sender );
    void __fastcall ReindexaoGeral1Click( TObject* Sender );
    void __fastcall ParamtrosArquivos1Click( TObject* Sender );
    void __fastcall VerificaodeDados1Click( TObject* Sender );
    void __fastcall Contedo1Click( TObject* Sender );
    void __fastcall PHnaWEB1Click( TObject* Sender );
    void __fastcall VersesInternte1Click( TObject* Sender );
    void __fastcall FormKeyDown( TObject* Sender, WORD& Key, TShiftState Shift );
    void __fastcall ConfiguraodeUsurio1Click( TObject* Sender );
    void __fastcall FormClose( TObject* Sender, TCloseAction& Action );
    void __fastcall Calculadora1Click( TObject* Sender );
    void __fastcall CopiarEnviar1Click( TObject* Sender );
    void __fastcall Restaurar1Click( TObject* Sender );
    void __fastcall StatusBar1MouseDown( TObject*  Sender, TMouseButton Button, TShiftState Shift,
                                         int X, int Y );
    void __fastcall PHDS1AfterRead( TObject* Sender );
    void __fastcall Clientes1Click( TObject* Sender );
    void __fastcall Fornecedoree1Click( TObject* Sender );
    void __fastcall ImpostosContribuiesRetidos1Click( TObject* Sender );
    void __fastcall Servios1Click( TObject* Sender );
    void __fastcall ContasBancrias1Click( TObject* Sender );
    void __fastcall ModelosdeContratos1Click( TObject* Sender );
    void __fastcall ModelosdeNF1Click( TObject* Sender );
    void __fastcall ModelosdeRecibos1Click( TObject* Sender );
    void __fastcall Indices1Click( TObject* Sender );
    void __fastcall ControledeUsuriosPH1Click( TObject* Sender );
    void __fastcall Contratos1Click( TObject* Sender );
    void __fastcall Faturamento1Click( TObject* Sender );
    void __fastcall Recebimentos1Click( TObject* Sender );
    void __fastcall Pagamentos1Click( TObject* Sender );
    void __fastcall Caixa1Click( TObject* Sender );
    void __fastcall Bancos1Click( TObject* Sender );
    void __fastcall Receber1Click( TObject* Sender );
    void __fastcall Pagar1Click( TObject* Sender );
    void __fastcall MovimentoClientes1Click( TObject* Sender );
    void __fastcall MovimentoFornecedores1Click( TObject* Sender );
    void __fastcall ContasaPagar1Click( TObject* Sender );
    void __fastcall ProjetosPH1Click( TObject* Sender );
    void __fastcall SpeedButton6Click( TObject* Sender );
    void __fastcall SpeedButton2Click( TObject* Sender );
    void __fastcall SpeedButton3Click( TObject* Sender );
    void __fastcall SpeedButton5Click( TObject* Sender );
    void __fastcall SpeedButton9Click( TObject* Sender );
    void __fastcall SpeedButton8Click( TObject* Sender );
    void __fastcall SpeedButton7Click( TObject* Sender );
    void __fastcall SpeedButton4Click( TObject* Sender );
    void __fastcall Informaes1Click( TObject* Sender );
    void __fastcall TimerCnsCaixaTimer( TObject* Sender );
    void __fastcall SpeedButton10Click( TObject* Sender );
    void __fastcall ServiosExtras1Click( TObject* Sender );
    void __fastcall Cheques1Click( TObject* Sender );
    void __fastcall TimerCnsChqTimer( TObject* Sender );
    void __fastcall TimerCnsBncTimer( TObject* Sender );
    void __fastcall TimerCnsMvFornTimer( TObject* Sender );
    void __fastcall TimerCnsMvCliTimer( TObject* Sender );
    void __fastcall TimerCnsContasRTimer( TObject* Sender );
    void __fastcall TimerCnsContasPTimer( TObject* Sender );
    void __fastcall Anotaes1Click(TObject *Sender);
    void __fastcall Aniversariantes1Click(TObject *Sender);
    void __fastcall AdicionaisPorNmerodeFuncionrios1Click(TObject *Sender);
    void __fastcall Custos1Click(TObject *Sender);
        void __fastcall PesosCustos1Click(TObject *Sender);
        void __fastcall Custos2Click(TObject *Sender);
 void __fastcall ConfiguraodeURLs1Click(TObject *Sender);
 void __fastcall FluxoCaixa1Click(TObject *Sender);
 void __fastcall ImportarRetornoBoletos1Click(TObject *Sender);
 void __fastcall AtalhospOutrosAplicativos1Click(TObject *Sender);
 void __fastcall ConsultaLog1Click(TObject *Sender);
 void __fastcall EscritaFiscal1Click(TObject *Sender);
 void __fastcall LanamentosContbeis1Click(TObject *Sender);
 void __fastcall ConfiguraoServicosPeriodicosClick(TObject *Sender);
 void __fastcall ServicosFaturados1Click(TObject *Sender);
 void __fastcall ModelosdeRecibosdeCobranas1Click(TObject *Sender);
 void __fastcall RelaodeClientes1Click(TObject *Sender);
 void __fastcall TiposdeNegativas1Click(TObject *Sender);
 void __fastcall Negativas1Click(TObject *Sender);
 void __fastcall CnsNegativas1Click(TObject *Sender);
 void __fastcall ModelosdeContratosSociais1Click(TObject *Sender);
 bool __fastcall ApplicationEvents1Help(WORD Command, int Data,
          bool &CallHelp);
 void __fastcall ApplicationEvents1ShortCut(TWMKey &Msg, bool &Handled);
  private: // User declarations
    void __fastcall RepeteMenu( TMenuItem* Menu, bool Habilita );
    void __fastcall IdenEmp( AnsiString GrupoTrabalho, double* IdenEmp, AnsiString* NomeEmp );
    AtualizaSistemaInternet*  SistemaInternet;
    NovasNoticiasPH*  NoticiasPH;
  public: // User declarations
    __fastcall TPrincipal1( TComponent* Owner );
    void __fastcall HandleExceptions( TObject* Sender, Exception* E );
    AnsiString CaptionInicial;
    int HandleMulti;
    void __fastcall CarregaConfAcesso( int CodSenha );
    struct SENHAS*  SEN;
    bool CarregaConfPrimeiraVez;
    bool JaShow;
    char ClickUsuarioOK[2];
    char InternetMensa[50];
};

//---------------------------------------------------------------------------
extern TPrincipal1* Principal1;
extern AnsiString VERSAOOLD;
extern AnsiString VERSAOATUAL;
extern AnsiString NOMESISTEMA;
#endif

